package com.qiangqiang.resoldhouse.entity;

import lombok.Data;

import java.util.Set;

/**
 * @author: zqh
 * @date: 2018/8/9 9:57
 * @description:
 */
@Data
public class AgentSelect {

    //排序方式， default或rank
    private String order;

    //经纪人名字 模糊查询
    private String agentName;

    //经纪人性别查询
    private String sex;

    //经纪人评分查询,格式为aa-bb,表示评分从aa到bb
    private Set<String> rank;

    //查询对应城市
    private Set<String> city;

    //经纪人审核状态 查询
    private Set<String> status;


    //查询对应的条件是否存在，用来将查询条件回显回页面
    public boolean cityContain(String key){
        if(city != null && city.contains(key)) return true;
        else return false;
    }

    public boolean statusContain(String key){
        if(status != null && status.contains(key)) return true;
        else return false;
    }

    public boolean rankContain(String key){
        if(rank != null && rank.contains(key)) return true;
        else return false;
    }
}
